package top.rainbowecho.model.percona;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 文章的分类
 * </p>
 *
 * @author 杨健
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_category")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 目录Id
     */
    @TableId("id")
    private String id;

    /**
     * 目录名称
     */
    @TableField("category_name")
    private String categoryName;

    /**
     * 目录描述，80个字符长度
     */
    @TableField("description")
    private String description;

    /**
     * 父分类的id
     */
    @TableField("parent_id")
    private String parentId;


}
